package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.pojo.Plan;

import java.util.Map;

public interface PlanDao {
    Page<Plan> selectByCondition(String queryString);

    Plan findById(Integer id);

    void insertOrderIdAndFood(Map<String, Integer> map);

    void insertOrderIdAndSports(Map<String, Integer> map);

    Long findCountFoodById(Integer orderId);

    void deleteFoodById(Integer orderId);

    Long findCountSportsById(Integer orderId);

    void deleteSportsById(Integer orderId);
}
